/**
 * 用户个人信息修改API
 */
import axios from 'axios'

const baseUrl = '/giraffe/user'

/**
 * 更换头像
 * data: {data: {uid: uid, headUrl}, token: token}
 */
export const changeHead = (data) => axios.post(
  `${baseUrl}/changeHead`,
  data,
  {headers: {'Content-Type': 'application/json'}}
).then(
  (res) => {
    return res
  }
)
